package com.exam.api.modules.student.controller;

import com.exam.api.common.web.TinyResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "(管理端) 学生信息相关接口", description = "(管理端) 学生信息相关接口")
@RestController
@RequestMapping("/manager/student")
@TinyResponse
public class TblStudentController {

//    @Resource
//    private TblStudentService tblStudentService;
//
//    @Operation(summary = "创建学生信息", description = "创建学生信息")
//    @PostMapping("/create")
//    public void createTblStudent(@RequestBody TblStudent tblStudent) {
//        tblStudentService.save(tblStudent);
//    }
//
//    @Operation(summary = "修改学生信息", description = "修改学生信息")
//    @PostMapping("/update")
//    public void updateTblStudent(@RequestBody TblStudent tblStudent) {
//        tblStudentService.updateById(tblStudent);
//    }
//
//    @Operation(summary = "分页查询学生信息", description = "分页查询学生信息")
//    @PostMapping("/page")
//    public IPage<TblStudent> pageTblStudent(@RequestBody TblStudent tblStudent) {
//        // TODO: 实现分页查询逻辑
//        // 示例: return tblStudentService.page(page, wrapper);
//        return null;
//    }
//
//    @Parameter(name = "id", description = "学生ID", in = ParameterIn.PATH, required = true)
//    @Operation(summary = "根据ID查询学生信息", description = "根据ID查询学生信息")
//    @PostMapping("/{id}")
//    public TblStudent getTblStudentById(@PathVariable("id") Long id) {
//        return tblStudentService.getById(id);
//    }
//
//    @Parameter(name = "id", description = "学生ID", in = ParameterIn.PATH, required = true)
//    @Operation(summary = "删除学生信息", description = "删除学生信息")
//    @PostMapping("/delete/{id}")
//    public void deleteTblStudent(@PathVariable("id") Long id) {
//        tblStudentService.removeById(id);
//    }
}
